<?php
class AttrAction extends  CommonAction{
	public function attrMg(){
		$attr=M('attr')->select();
		$this->attr=$attr;
		$this->display();
	}
	public function attrAdd(){
		
		$this->display();
	}
	public function addAttr(){
		if(M('attr')->add($_POST)){
			$this->success('添加成功',U(GROUP_NAME.'/Attr/attrMg'));
		}else {
			$this->error('添加失败');
		}
		
	}
}
?>